- contacts = entity.contacts.order('updated_at DESC').paginate(page: params[:page], per_page: 20)
$('#contacts').html('#{ j render(partial: 'contacts/contact', collection: contacts) }');
$('#contacts_pagination').html('#{ j paginate(collection: contacts, container: false, params: { action: 'contacts' } ) }');
